// 该工厂负责生产一套现代风格的家具
import { AbstractFactory } from "./AbstractFactory";
import { Chair, Sofa, CoffeeTable } from "../Products/AbstractProduct";
import {
  ModernChair,
  ModernSofa,
  ModernCoffeeTable,
} from "../Products/ModernProducts";

export class ModernFantory extends AbstractFactory {
  createChair(): Chair {
    return new ModernChair();
  }
  createSofa(): Sofa {
    return new ModernSofa();
  }
  createCoffeeTable(): CoffeeTable {
    return new ModernCoffeeTable();
  }
}
